﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="EditNode.aspx.cs" Inherits="Cn.Cellula.Website.Admin.Wf.Config.EditNode" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link type="text/css" rel="Stylesheet" href="/Cellula_Client/controls/JskitControls.css" />
    <script type="text/javascript" src="/jskit.org/model/controls/JskitRichDropDownList.js"></script>
    <script type="text/javascript">
        var jrddlRole = new JskitRichDropDownList("jrddlRole");
        jrddlRole.setIsMultiSelect(true);
        var jrddlUser = new JskitRichDropDownList("jrddlUser");
        jrddlUser.setIsMultiSelect(true);
        function PageOnLoad() {
            jrddlRole.deploy(fixId("txt_Role"), fixId("hid_Role"), "Ws/Sys/_Role.aspx");
            jrddlUser.deploy(fixId("txt_User"), fixId("hid_User"), "Ws/_User.aspx?mode=rddl", "r", fixId("hid_Role"));
        }
    </script></asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="CPH_PageTitle" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="CPH_MainBody" runat="server">
    <div class="action_bar">
        <asp:Button ID="btn_save" runat="server" Text="保存" OnClick="btn_save_Click" />
        <input type="reset" value="重置" />
        <input type="button" onclick="jskitBulter.redirect('Admin/Wf/Config/List.aspx?wid=<%=Request.QueryString["wid"] %>')"
            value="取消" />
    </div>
    <fieldset>
        <legend>节点信息</legend>
        <table border="0" cellpadding="0" cellspacing="0" class="edit_form">
            <tr>
                <td class="edit_form_item_title">
                    <span class="required">隶属流程：</span>
                </td>
                <td class="edit_form_item_content">
                    <asp:DropDownList runat="server" ID="ddl_wf" DataTextField="WfName" DataValueField="WfKey"></asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="edit_form_item_title">
                    <span class="required">节点名称：</span>
                </td>
                <td class="edit_form_item_content">
                    <asp:TextBox runat="server" ID="txt_NodeName"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="edit_form_item_title">
                    <span class="required">审批角色：</span>
                </td>
                <td class="edit_form_item_content">
                    <asp:TextBox runat="server" ID="txt_Role"></asp:TextBox>
                    <asp:HiddenField runat="server" ID="hid_Role" />
                </td>
            </tr>
            <tr>
                <td class="edit_form_item_title">
                    审批用户：
                </td>
                <td class="edit_form_item_content">
                    <asp:TextBox runat="server" ID="txt_User"></asp:TextBox>
                    <asp:HiddenField runat="server" ID="hid_User" />
                </td>
            </tr>
            <tr>
                <td class="edit_form_item_title">
                    属主关联：
                </td>
                <td class="edit_form_item_content">
                    <asp:RadioButtonList runat="server" ID="ral_OwnerRef" RepeatDirection="Horizontal">
                        <asp:ListItem Text="是" Value="1" Selected="True" ></asp:ListItem>
                        <asp:ListItem Text="否" Value="0"></asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr>
                <td class="edit_form_item_title">
                    部门关联：
                </td>
                <td class="edit_form_item_content">
                    <asp:RadioButtonList runat="server" ID="ral_DeptRef" RepeatDirection="Horizontal">
                        <asp:ListItem Text="是" Value="1" Selected="True" ></asp:ListItem>
                        <asp:ListItem Text="否" Value="0"></asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr>
                <td class="edit_form_item_title">
                    属主关联：
                </td>
                <td class="edit_form_item_content">
                    <asp:RadioButtonList runat="server" ID="RadioButtonList2" RepeatDirection="Horizontal">
                        <asp:ListItem Text="是" Value="1" Selected="True" ></asp:ListItem>
                        <asp:ListItem Text="否" Value="0"></asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr>
                <td class="edit_form_item_title">
                    规则描述：
                </td>
                <td class="edit_form_item_content">
                    <asp:TextBox runat="server" ID="txt_RuleDesc" Width="300px" Height="50px" TextMode="MultiLine"></asp:TextBox>
                </td>
            </tr>
        </table>
    </fieldset>
    </asp:Content>
